package com.polymorphic;

/**
 * @Author 小闽
 * @Date 2024/8/11 9:17
 * @PackageName: com.polymorphic
 * @ClassName: Food
 * @Description: 食物类
 * @Version 1.0
 */
public class Food {
    /**
     * 食物名称
     */
    private String name;
    /**
     * 构造器（有参）
     */
    public Food(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
